import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'


Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loading: false
  },
  mutations: {
    setLoading(state,data){
      state.loading = data ;
    }
  },
  actions: {
  },
  modules: {
  },
  plugins: [persistedState({
    key: 'sxtbd',
    storage: window.sessionStorage
})]
})
